<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>eCommerce: Plik źródłowy D:/CentrumXP/e-Commerce/eCommerceDev/SklepModel/ProductBatch.cs</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="namespaces.html"><span>Pakiety</span></a></li>
      <li><a href="annotated.html"><span>Klasy</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Składowe&nbsp;plików</span></a></li>
    </ul>
  </div>
<h1>D:/CentrumXP/e-Commerce/eCommerceDev/SklepModel/ProductBatch.cs</h1><a href="_product_batch_8cs.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="_product_batch_8cs.html#a81a223a02c34d82b47199f08308847f2">00001</a> ﻿using <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>;
<a name="l00002"></a>00002 <span class="keyword">using</span> <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>.Collections.Generic;
<a name="l00003"></a>00003 <span class="keyword">using</span> <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>.Text;
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="keyword">namespace </span>ShopModel
<a name="l00006"></a>00006 {
<a name="l00007"></a>00007 <span class="preprocessor">    #region ENUMS</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a><a class="code" href="namespace_shop_model.html#a774d3adc5071182aeabf177fff93156b">00009</a>     <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="namespace_shop_model.html#a774d3adc5071182aeabf177fff93156b">OrderedProductStatus</a>
<a name="l00010"></a>00010     {
<a name="l00011"></a>00011         Missing = 1,
<a name="l00012"></a>00012         OK = 2,
<a name="l00013"></a>00013         Canceled = 3,
<a name="l00014"></a>00014         Returned = 4
<a name="l00015"></a>00015     }
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">    #endregion</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>    
<a name="l00022"></a><a class="code" href="class_shop_model_1_1_product_batch.html">00022</a>     <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_shop_model_1_1_product_batch.html" title="Klasa przechowująca informacje o zmówionym produkcie (Class storing information...">ProductBatch</a>
<a name="l00023"></a>00023     {
<a name="l00024"></a>00024 <span class="preprocessor">        #region VARIBLES</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026         <span class="keyword">private</span> <span class="keywordtype">int</span> productId;
<a name="l00027"></a>00027         <span class="keyword">private</span> <span class="keywordtype">int</span> deliveryId;
<a name="l00028"></a>00028         <span class="keyword">private</span> <span class="keywordtype">string</span> productName;
<a name="l00029"></a>00029         <span class="keyword">private</span> <span class="keywordtype">string</span> categoryName;
<a name="l00030"></a>00030         <span class="keyword">private</span> DateTime deliveryDate;
<a name="l00031"></a>00031         <span class="keyword">private</span> decimal price;
<a name="l00032"></a>00032         <span class="keyword">private</span> decimal cost;
<a name="l00033"></a>00033         <span class="keyword">private</span> <span class="keywordtype">int</span> count;
<a name="l00034"></a>00034         <span class="keyword">private</span> <span class="keywordtype">int</span> availableCount;
<a name="l00035"></a>00035         <span class="keyword">private</span> decimal vatRateValue;
<a name="l00036"></a>00036         <span class="keyword">private</span> <a class="code" href="namespace_shop_model.html#a774d3adc5071182aeabf177fff93156b">OrderedProductStatus</a> status;
<a name="l00037"></a>00037         <span class="keyword">private</span> decimal discount;
<a name="l00038"></a>00038         <span class="keyword">private</span> <span class="keywordtype">int</span> reservedCount;
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="preprocessor">        #endregion</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">        #region CONSTRUCTORS</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a><a class="code" href="class_shop_model_1_1_product_batch.html#ae9df123aae21e6bd98114f4408e51df4">00044</a>         <span class="keyword">public</span> <a class="code" href="class_shop_model_1_1_product_batch.html#ae9df123aae21e6bd98114f4408e51df4">ProductBatch</a>()
<a name="l00045"></a>00045         {
<a name="l00046"></a>00046             productId = -1;
<a name="l00047"></a>00047             deliveryId = -1;
<a name="l00048"></a>00048             productName = <span class="keywordtype">string</span>.Empty;
<a name="l00049"></a>00049             categoryName = <span class="keywordtype">string</span>.Empty;
<a name="l00050"></a>00050             deliveryDate = DateTime.MinValue;
<a name="l00051"></a>00051             price = -1m;
<a name="l00052"></a>00052             cost = -1m;
<a name="l00053"></a>00053             count = -1;
<a name="l00054"></a>00054             availableCount = -1;
<a name="l00055"></a>00055         }
<a name="l00056"></a>00056 
<a name="l00057"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a9b38455efda6362f2a8c4e75f19c7ec6">00057</a>         <span class="keyword">public</span> <a class="code" href="class_shop_model_1_1_product_batch.html#ae9df123aae21e6bd98114f4408e51df4">ProductBatch</a>(<span class="keywordtype">int</span> ProductID, <span class="keywordtype">string</span> <a class="code" href="class_shop_model_1_1_product_batch.html#a2789fdc94ccf1a0c65bd6cc0ea61a85b">ProductName</a>, <span class="keywordtype">int</span> DeliveryID, decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a08b3c7aa94d71a1e944efbfb9c920077">PriceBrutto</a>, decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a5701e94d19c8db1b56392628e94b7e1f">CostBrutto</a>, <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#a435a072929278a156105269d1b3baeb9">AvailableCount</a>, <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#af59fddc10a251d87f572b019ae8b4d77">Count</a>, decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a5ca31a6c40585abba008769964cc897d">VatRateValue</a>)
<a name="l00058"></a>00058         {
<a name="l00059"></a>00059             productId = ProductID;
<a name="l00060"></a>00060             deliveryId = DeliveryID;
<a name="l00061"></a>00061             productName = ProductName;
<a name="l00062"></a>00062             categoryName = <span class="keywordtype">string</span>.Empty;
<a name="l00063"></a>00063             deliveryDate = DateTime.MinValue;
<a name="l00064"></a>00064             price = PriceBrutto;
<a name="l00065"></a>00065             cost = CostBrutto;
<a name="l00066"></a>00066             count = Count;
<a name="l00067"></a>00067             availableCount = AvailableCount;
<a name="l00068"></a>00068             vatRateValue = VatRateValue;
<a name="l00069"></a>00069         }
<a name="l00070"></a>00070 
<a name="l00071"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a8a1a53e4512fc302594a1ad51b3b004b">00071</a>         <span class="keyword">public</span> <a class="code" href="class_shop_model_1_1_product_batch.html#ae9df123aae21e6bd98114f4408e51df4">ProductBatch</a>(<span class="keywordtype">int</span> ProductID, <span class="keywordtype">string</span> <a class="code" href="class_shop_model_1_1_product_batch.html#a2789fdc94ccf1a0c65bd6cc0ea61a85b">ProductName</a>, <span class="keywordtype">int</span> DeliveryID, decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a08b3c7aa94d71a1e944efbfb9c920077">PriceBrutto</a>, decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a5701e94d19c8db1b56392628e94b7e1f">CostBrutto</a>, <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#a435a072929278a156105269d1b3baeb9">AvailableCount</a>, <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#af59fddc10a251d87f572b019ae8b4d77">Count</a>, decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a5ca31a6c40585abba008769964cc897d">VatRateValue</a>,decimal Discount)
<a name="l00072"></a>00072         {
<a name="l00073"></a>00073             productId = ProductID;
<a name="l00074"></a>00074             deliveryId = DeliveryID;
<a name="l00075"></a>00075             productName = ProductName;
<a name="l00076"></a>00076             categoryName = <span class="keywordtype">string</span>.Empty;
<a name="l00077"></a>00077             deliveryDate = DateTime.MinValue;
<a name="l00078"></a>00078             price = PriceBrutto;
<a name="l00079"></a>00079             cost = CostBrutto;
<a name="l00080"></a>00080             count = Count;
<a name="l00081"></a>00081             availableCount = AvailableCount;
<a name="l00082"></a>00082             vatRateValue = VatRateValue;
<a name="l00083"></a>00083             discount = Discount;
<a name="l00084"></a>00084         }
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="preprocessor">        #endregion</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span>
<a name="l00088"></a>00088 <span class="preprocessor">        #region FIELDS</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
<a name="l00090"></a>00090         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#a704bf8604e08b98fcb338820a5a61486">ProductId</a>
<a name="l00091"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a704bf8604e08b98fcb338820a5a61486">00091</a>         {
<a name="l00092"></a>00092             <span class="keyword">get</span> { <span class="keywordflow">return</span> productId; }
<a name="l00093"></a>00093             <span class="keyword">set</span> { productId = value; }
<a name="l00094"></a>00094         }
<a name="l00095"></a>00095 
<a name="l00096"></a>00096         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#ad9c88bbd5280c4eefc2ebdec6708d7e0">DeliveryId</a>
<a name="l00097"></a><a class="code" href="class_shop_model_1_1_product_batch.html#ad9c88bbd5280c4eefc2ebdec6708d7e0">00097</a>         {
<a name="l00098"></a>00098             <span class="keyword">get</span> { <span class="keywordflow">return</span> deliveryId; }
<a name="l00099"></a>00099             <span class="keyword">set</span> { deliveryId = value; }
<a name="l00100"></a>00100         }
<a name="l00101"></a>00101 
<a name="l00102"></a>00102         <span class="keyword">public</span> <span class="keywordtype">string</span> <a class="code" href="class_shop_model_1_1_product_batch.html#a2789fdc94ccf1a0c65bd6cc0ea61a85b">ProductName</a>
<a name="l00103"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a2789fdc94ccf1a0c65bd6cc0ea61a85b">00103</a>         {
<a name="l00104"></a>00104             <span class="keyword">get</span> { <span class="keywordflow">return</span> productName; }
<a name="l00105"></a>00105             <span class="keyword">set</span> { productName = value; }
<a name="l00106"></a>00106         }
<a name="l00107"></a>00107 
<a name="l00108"></a>00108         <span class="keyword">public</span> <span class="keywordtype">string</span> <a class="code" href="class_shop_model_1_1_product_batch.html#ad9714bf6076b80edc051444b8aabfb3e">CategoryName</a>
<a name="l00109"></a><a class="code" href="class_shop_model_1_1_product_batch.html#ad9714bf6076b80edc051444b8aabfb3e">00109</a>         {
<a name="l00110"></a>00110             <span class="keyword">get</span> { <span class="keywordflow">return</span> categoryName; }
<a name="l00111"></a>00111             <span class="keyword">set</span> { categoryName = value; }
<a name="l00112"></a>00112         }
<a name="l00113"></a>00113 
<a name="l00114"></a>00114         <span class="keyword">public</span> DateTime <a class="code" href="class_shop_model_1_1_product_batch.html#a1b3d285b4874b2aee054873c509dffa6">DeliveryDate</a>
<a name="l00115"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a1b3d285b4874b2aee054873c509dffa6">00115</a>         {
<a name="l00116"></a>00116             <span class="keyword">get</span> { <span class="keywordflow">return</span> deliveryDate; }
<a name="l00117"></a>00117             <span class="keyword">set</span> { deliveryDate = value; }
<a name="l00118"></a>00118         }
<a name="l00119"></a>00119 
<a name="l00120"></a>00120         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a08b3c7aa94d71a1e944efbfb9c920077">PriceBrutto</a>
<a name="l00121"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a08b3c7aa94d71a1e944efbfb9c920077">00121</a>         {
<a name="l00122"></a>00122             <span class="keyword">get</span> { <span class="keywordflow">return</span> price-discount; }
<a name="l00123"></a>00123             <span class="keyword">set</span> { price = value; }
<a name="l00124"></a>00124         }
<a name="l00125"></a>00125 
<a name="l00126"></a>00126         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a896a859cf6d1c3ebc95ef1fc132d503b">PriceNetto</a>
<a name="l00127"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a896a859cf6d1c3ebc95ef1fc132d503b">00127</a>         {
<a name="l00128"></a>00128             <span class="keyword">get</span> { <span class="keywordflow">return</span> decimal.Round((price - discount) / (1 + vatRateValue), 2); }
<a name="l00129"></a>00129             <span class="keyword">set</span> { price = decimal.Round(value * (1 + vatRateValue), 2); }
<a name="l00130"></a>00130         }
<a name="l00131"></a>00131 
<a name="l00132"></a>00132         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#aba19d6aa63e028130fbb811e9a0e885c">DiscountBrutto</a>
<a name="l00133"></a><a class="code" href="class_shop_model_1_1_product_batch.html#aba19d6aa63e028130fbb811e9a0e885c">00133</a>         {
<a name="l00134"></a>00134             <span class="keyword">get</span> { <span class="keywordflow">return</span> discount; }
<a name="l00135"></a>00135             <span class="keyword">set</span> { discount = value; }
<a name="l00136"></a>00136         }
<a name="l00137"></a>00137 
<a name="l00138"></a>00138         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#adab0e71b1ac0c52c9ed30e5fe12688f9">DiscountNetto</a>
<a name="l00139"></a><a class="code" href="class_shop_model_1_1_product_batch.html#adab0e71b1ac0c52c9ed30e5fe12688f9">00139</a>         {
<a name="l00140"></a>00140             <span class="keyword">get</span> { <span class="keywordflow">return</span> decimal.Round(discount / (1 + vatRateValue), 2); }
<a name="l00141"></a>00141             <span class="keyword">set</span> { discount = decimal.Round(value * (1 + vatRateValue), 2); }
<a name="l00142"></a>00142         }
<a name="l00143"></a>00143 
<a name="l00144"></a>00144         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#abd64701a7cb9153fd4f29d303d5e9c23">OrgPriceBrutto</a>
<a name="l00145"></a><a class="code" href="class_shop_model_1_1_product_batch.html#abd64701a7cb9153fd4f29d303d5e9c23">00145</a>         {
<a name="l00146"></a>00146             <span class="keyword">get</span> { <span class="keywordflow">return</span> price; }
<a name="l00147"></a>00147             <span class="keyword">set</span> { price = value; }
<a name="l00148"></a>00148         }
<a name="l00149"></a>00149 
<a name="l00150"></a>00150         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a685425defad2391131bbd49577f64a8a">OrgPriceNetto</a>
<a name="l00151"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a685425defad2391131bbd49577f64a8a">00151</a>         {
<a name="l00152"></a>00152             <span class="keyword">get</span> { <span class="keywordflow">return</span> decimal.Round(price / (1 + vatRateValue), 2); }
<a name="l00153"></a>00153             <span class="keyword">set</span> { price = decimal.Round(value * (1 + vatRateValue), 2); }
<a name="l00154"></a>00154         }
<a name="l00155"></a>00155 
<a name="l00156"></a>00156         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a5701e94d19c8db1b56392628e94b7e1f">CostBrutto</a>
<a name="l00157"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a5701e94d19c8db1b56392628e94b7e1f">00157</a>         {
<a name="l00158"></a>00158             <span class="keyword">get</span> { <span class="keywordflow">return</span> cost; }
<a name="l00159"></a>00159             <span class="keyword">set</span> { cost = value; }
<a name="l00160"></a>00160         }
<a name="l00161"></a>00161 
<a name="l00162"></a>00162         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a48dd4e9337ee8ce8b268ff0205a18e1a">CostNetto</a>
<a name="l00163"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a48dd4e9337ee8ce8b268ff0205a18e1a">00163</a>         {
<a name="l00164"></a>00164             <span class="keyword">get</span> { <span class="keywordflow">return</span> decimal.Round(cost / (1 + vatRateValue), 2); }
<a name="l00165"></a>00165             <span class="keyword">set</span> { cost = decimal.Round(value * (1 + vatRateValue), 2); }
<a name="l00166"></a>00166         }
<a name="l00167"></a>00167 
<a name="l00168"></a>00168         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#af59fddc10a251d87f572b019ae8b4d77">Count</a>
<a name="l00169"></a><a class="code" href="class_shop_model_1_1_product_batch.html#af59fddc10a251d87f572b019ae8b4d77">00169</a>         {
<a name="l00170"></a>00170             <span class="keyword">get</span> { <span class="keywordflow">return</span> count; }
<a name="l00171"></a>00171             <span class="keyword">set</span> { count = value; }
<a name="l00172"></a>00172         }
<a name="l00173"></a>00173 
<a name="l00174"></a>00174         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#a435a072929278a156105269d1b3baeb9">AvailableCount</a>
<a name="l00175"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a435a072929278a156105269d1b3baeb9">00175</a>         {
<a name="l00176"></a>00176             <span class="keyword">get</span> { <span class="keywordflow">return</span> availableCount; }
<a name="l00177"></a>00177             <span class="keyword">set</span> { availableCount = value; }
<a name="l00178"></a>00178         }
<a name="l00179"></a>00179 
<a name="l00180"></a>00180         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a4f62b1140544b8632d695f5834cf1aad">ProfitBrutto</a>
<a name="l00181"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a4f62b1140544b8632d695f5834cf1aad">00181</a>         {
<a name="l00182"></a>00182             <span class="keyword">get</span>
<a name="l00183"></a>00183             {
<a name="l00184"></a>00184                 <span class="keywordflow">return</span> price - cost;
<a name="l00185"></a>00185             }
<a name="l00186"></a>00186         }
<a name="l00187"></a>00187 
<a name="l00188"></a>00188         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a2a644cd3d99195a22af96d2fa2a15f91">ProfitNetto</a>
<a name="l00189"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a2a644cd3d99195a22af96d2fa2a15f91">00189</a>         {
<a name="l00190"></a>00190             <span class="keyword">get</span>
<a name="l00191"></a>00191             {
<a name="l00192"></a>00192                 <span class="keywordflow">return</span> <a class="code" href="class_shop_model_1_1_product_batch.html#a896a859cf6d1c3ebc95ef1fc132d503b">PriceNetto</a> - <a class="code" href="class_shop_model_1_1_product_batch.html#a48dd4e9337ee8ce8b268ff0205a18e1a">CostNetto</a>;
<a name="l00193"></a>00193             }
<a name="l00194"></a>00194         }
<a name="l00195"></a>00195 
<a name="l00196"></a>00196         <span class="keyword">public</span> decimal <a class="code" href="class_shop_model_1_1_product_batch.html#a5ca31a6c40585abba008769964cc897d">VatRateValue</a>
<a name="l00197"></a><a class="code" href="class_shop_model_1_1_product_batch.html#a5ca31a6c40585abba008769964cc897d">00197</a>         {
<a name="l00198"></a>00198             <span class="keyword">get</span> { <span class="keywordflow">return</span> vatRateValue; }
<a name="l00199"></a>00199             <span class="keyword">set</span> { vatRateValue = value; }
<a name="l00200"></a>00200         }
<a name="l00201"></a>00201 
<a name="l00202"></a>00202         <span class="keyword">public</span> <a class="code" href="namespace_shop_model.html#a774d3adc5071182aeabf177fff93156b">OrderedProductStatus</a> <a class="code" href="class_shop_model_1_1_product_batch.html#ab49054a86040964a13275ac1741afd8b">Status</a>
<a name="l00203"></a><a class="code" href="class_shop_model_1_1_product_batch.html#ab49054a86040964a13275ac1741afd8b">00203</a>         {
<a name="l00204"></a>00204             <span class="keyword">get</span>
<a name="l00205"></a>00205             { <span class="keywordflow">return</span> status; }
<a name="l00206"></a>00206             <span class="keyword">set</span>
<a name="l00207"></a>00207             { status = value; }
<a name="l00208"></a>00208         }
<a name="l00209"></a>00209 
<a name="l00210"></a>00210 
<a name="l00211"></a>00211         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#ac32af4d1f538524e380c9eaa6c9bc794">ReservedCount</a>
<a name="l00212"></a><a class="code" href="class_shop_model_1_1_product_batch.html#ac32af4d1f538524e380c9eaa6c9bc794">00212</a>         {
<a name="l00213"></a>00213             <span class="keyword">get</span> { <span class="keywordflow">return</span> reservedCount; }
<a name="l00214"></a>00214             <span class="keyword">set</span> { reservedCount = value; }
<a name="l00215"></a>00215         }
<a name="l00216"></a>00216 
<a name="l00217"></a>00217         <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="class_shop_model_1_1_product_batch.html#aa493664ddbba548498dd24ea122af97e">TotalCount</a>
<a name="l00218"></a><a class="code" href="class_shop_model_1_1_product_batch.html#aa493664ddbba548498dd24ea122af97e">00218</a>         {
<a name="l00219"></a>00219             <span class="keyword">get</span> { <span class="keywordflow">return</span> reservedCount+availableCount; }
<a name="l00220"></a>00220         }
<a name="l00221"></a>00221 
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="preprocessor">        #endregion</span>
<a name="l00224"></a>00224 <span class="preprocessor"></span>
<a name="l00225"></a>00225 <span class="preprocessor">        #region ENUMS</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span>
<a name="l00227"></a>00227 
<a name="l00228"></a><a class="code" href="class_shop_model_1_1_product_batch.html#aa867039290a3b6e23fb951b5df0e63f7">00228</a>         <span class="keyword">public</span> <span class="keyword">enum</span> <a class="code" href="class_shop_model_1_1_product_batch.html#aa867039290a3b6e23fb951b5df0e63f7">SortExpresion</a>
<a name="l00229"></a>00229         {
<a name="l00230"></a>00230             <a class="code" href="class_shop_model_1_1_product_batch.html#a704bf8604e08b98fcb338820a5a61486">ProductId</a>,
<a name="l00231"></a>00231             <a class="code" href="class_shop_model_1_1_product_batch.html#ad9c88bbd5280c4eefc2ebdec6708d7e0">DeliveryId</a>,
<a name="l00232"></a>00232             <a class="code" href="class_shop_model_1_1_product_batch.html#a2789fdc94ccf1a0c65bd6cc0ea61a85b">ProductName</a>,
<a name="l00233"></a>00233             Available,
<a name="l00234"></a>00234             <a class="code" href="class_shop_model_1_1_product_batch.html#af59fddc10a251d87f572b019ae8b4d77">Count</a>,
<a name="l00235"></a>00235             <a class="code" href="class_shop_model_1_1_product_batch.html#a896a859cf6d1c3ebc95ef1fc132d503b">PriceNetto</a>,
<a name="l00236"></a>00236             Cost,
<a name="l00237"></a>00237             <a class="code" href="class_shop_model_1_1_product_batch.html#a1b3d285b4874b2aee054873c509dffa6">DeliveryDate</a>,
<a name="l00238"></a>00238             <a class="code" href="class_shop_model_1_1_product_batch.html#ad9714bf6076b80edc051444b8aabfb3e">CategoryName</a>,
<a name="l00239"></a>00239         }
<a name="l00240"></a>00240 
<a name="l00241"></a>00241 <span class="preprocessor">        #endregion</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span>    }
<a name="l00243"></a>00243 }
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Przestrzenie nazw</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Wyliczenia</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Właściwości</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Zdarzenia</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Wygenerowano Mon Nov 9 06:08:18 2009 dla eCommerce programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
